package com.twu.biblioteca;

/**
 * Created by Raluca Puichilita on 31/07/2014.
 */

public class Book {

    private String name;
    private String author;
    private int yearPublished;

    public Book(String givenName, String givenAuthor, int givenYear) {
        name = givenName;
        author = givenAuthor;
        yearPublished = givenYear;
    }

    public String getName() {
        return name;
    }

    public String getAuthor() {
        return author;
    }

    public int getYearPublished() {
        return yearPublished;
    }

    public String toString() {
        return "'" + name + "'" + " by " + author + ", " + yearPublished;
    }
}
